package org.graduation.recruitment.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.graduation.recruitment.entity.pojo.EnterpriseUser;
import org.graduation.recruitment.entity.pojo.Job;

import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CheckResumeVO implements VO {
    private EnterpriseUser enterprise;
    /**
     * 职位id和投递职位的所有简历
     */
    private Map<Long, List<ResumeVO>> resume;
    private List<Job> jobs;

    public void setEnterprise(EnterpriseUser enterprise) {
        this.enterprise = enterprise;
        this.enterprise.hidePassword();
    }
}
